package com.chanzany.state.base;

/**
 * @Author ChanZany
 * @Date 2021/10/20 14:04
 * @Version 1.0
 * 具体状态A类
 */
public class ConcreteStateA extends State{
    @Override
    public void handle(Context context) {
        System.out.println("当前状态是A.");
        context.setState(new ConcreteStateB());
    }
}
